package com.zdkj.subway.support.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zdkj.subway.support.dto.out.StationPersonGuardDTO;
import com.zdkj.subway.support.entity.SwPmStationPersonGuard;
import org.apache.ibatis.annotations.Param;

/**
 * 车站人员在岗信息表
 *
 * @author cuilei
 * @date 2020-06-04 10:30:20
 */
public interface SwPmStationPersonGuardMapper extends BaseMapper<SwPmStationPersonGuard> {
    /**
     * 自定义条件查询
     *
     * @param page
     * @param stationPersonGuard
     * @param stationCode
     * @return
     */
    IPage<StationPersonGuardDTO> pageSelect(Page page, @Param("dto") StationPersonGuardDTO stationPersonGuard,
                                            @Param("stationCode") String stationCode);

    /**
     * 生成在岗记录
     * @return
     */
    Boolean saveDaiyPersonRecord();

    /**
     * 清空表数据
     * @return
     */
    Boolean truncateDailyRecord();
}
